package com.rr.learningdemo.newfeature;

import com.rr.learningdemo.pojo.Person;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author RR
 * @date 2021/3/16 16:38
 */
public class FuncReference {
    public static void main(String[] args) {
        List<Person> list = new ArrayList<>();
        list.add(new Person("name1",1));
        list.add(new Person("name2",2));
        list.add(new Person("name3",3));
        list.add(new Person("name4",4));
        list.forEach(System.out::println);
    }
}
